#pragma once

#ifndef _Missile_h_
#define _Missile_h_

#include "Flying.h"
#include "Jet.h"
#include "Particles/ParticleEmitter.h"

#include "../Framework/Sound.h"

namespace MyGame {

class Missile :
            public Flying {
public:
    Missile(Game* game);
    virtual ~Missile(void);
    Jet* GetTarget() const;
    void SetTarget(Jet* val);
    virtual void SetPosition(D3DXVECTOR3 val);
    virtual void Draw(FLOAT timeDelta);
    virtual void Initialize();
    virtual void LoadContent();
    virtual void Update(FLOAT timeDelta);
private:
    Sound* explosionSound;
    Sound* flightSound;
    ParticleEmitter* particleEmitter;
    Jet* target;
};

}

#endif
